import request from '@/utils/system/request';
// 试验样本数据管理
/** 获取数据 */
export function httpSampleData(data: object) {
  return request({
    url: '/complexNet/sampleData/getSampleDataList',
    method: 'post',
    data,
  });
}

// 导出
export function exportSampleToExcel(ids) {
  return request({
    url: `/complexNet/sampleData/exportSampleToExcel?ids=${ids}`,
    method: 'get',
    // params: data,
    responseType: 'blob'
  });
}

// 删除
export function httpPatchDel(data: object) {
  return request({
    url: '/complexNet/sampleData/deleteSampleData',
    method: 'post',
    params: data,
  });
}

// 进入进程
export function httpProcess(data: object) {
  return request({
    url: '/student/patchDel',
    method: 'post',
    data,
  });
}

// 添加基础信息
export function saveSampleBaseInfo(data: object) {
  return request({
    url: '/complexNet/sampleData/saveSampleBaseInfo',
    method: 'post',
    data,
  });
}

// 修改基础信息 
export function updateSampleBaseInfo(data: object) {
  return request({
    url: '/complexNet/sampleData/updateSampleBaseInfo',
    method: 'post',
    data,
  });
}

// 获取试验样本详情
export function getSampleDataInfo(data: object) {
  return request({
    url: '/complexNet/sampleData/getSampleDataInfo',
    method: 'post',
    params: data,
  });
}


/**
 * 试验样本数据手动录入相关接口
 */
// 试验场景-初始部署关系描述项-保存
export function httpSaveTestSceneInitDeployDescript(data: object) {
  return request({
    url: '/complexNet/sampleData/saveInitialDeployInfo',
    method: 'post',
    data,
  });
}

// 试验场景-试验说明描述项-保存
export function httpSaveTestSceneTestExplainDescript(data: object) {
  return request({
    url: '/complexNet/sampleData/saveTestDesInfo',
    method: 'post',
    data,
  });
}

// 战技信息-初始部署关系描述项-保存
export function httpSaveTactInfoInitDeployDescriptItem(data: object) {
  return request({
    url: '/complexNet/sampleData/saveUseDesInfo',
    method: 'post',
    data,
  });
}

// 战技信息-背景环境过程描述项-保存
export function httpSaveTactInfoExplainDescriptItem(data: object) {
  return request({
    url: '/complexNet/sampleData/saveBgEnviInfo',
    method: 'post',
    data,
  });
}

// 进行数据处理
export function httpDealData(data: object) {
  return request({
    url: '/complexNet/sampleData/dealSampleData',
    method: 'post',
    data,
  });
}

